import Vue from 'vue'
import App from './App'
import store from './store'
import tab from 'utils/tab.js'
import modal from './utils/modal'
import {getPicture} from 'utils/getPicture.js'
import{tansParams} from 'utils/common.js'
import uView from '@/uni_modules/uview-ui'
import customNavbarVue from './components/custom-navbar.vue'
Vue.use(uView)

// store
Vue.prototype.$store = store;
//tab
Vue.prototype.$tab = tab;
//modal
Vue.prototype.$modal = modal;
//picture
Vue.prototype.$getPicture = getPicture;
//tansParams
Vue.prototype.$tansParams = tansParams;

Vue.component('custom-navbar',customNavbarVue)

// #ifndef VUE3
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	store,
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import { from } from 'form-data'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif